home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
bit
/
src
/
ulib
/
write2lsb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
565b
|
22 lines
/***********************************************************************
* $Id: write2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $
*
*. Copyright(c) 1993,1994 by T.C. Zhao
* All rights reserved.
*.
* Write 2bytes LSB first
***********************************************************************/
#if !defined(lint) && defined(F_ID)
char *id_w2lsb = "$Id: write2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $";
#endif
#include <stdio.h>
#include "ulib.h"
void
put2LSBF(int code, FILE * fp)
{
putc(code & 0xff, fp);
putc((code >> 8) & 0xff, fp);
}